<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head lang="zh-CN">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <title>请假加班管理系统</title>
</head>

<body>
<div class="container">
    <div class="row">
        <h2 class="text-center">员工加班情况</h2>
    </div>

    <div class="row">
        <div class="col-xs-12 col-sm-2">
            <p></p>
            <div class="panel panel-default">
                <div class="panel-heading">导航</div>
                <div class="list-group nav nav-pills nav-stacked">
                    <a class="list-group-item list-group-item-info" href="attendance.html">
                        加班休假整体情况<span class="glyphicon glyphicon-chevron-right"></span></a>
                    <a class="list-group-item list-group-item-info" href="#">
                        加班情况<span class="glyphicon glyphicon-chevron-right"></span></a>
                    <a class="list-group-item list-group-item-warning" href="vacation.html">
                        休假情况<span class="glyphicon glyphicon-chevron-right"></span></a>
                </div>
            </div>
        </div>

        <div class="col-xs-12 col-sm-10">
            <span class="badge">年份：<span>2017</span></span>
            <p></p>
            <table class="table table-striped table-bordered
                table-hover table-condensed table-responsive">
                <tr>
                    <td class="danger text-center">姓名</td>
                    <td class="info text-center">加班事由</td>
                    <td class="info text-center">开始日期</td>
                    <td class="warning text-center">结束日期</td>
                    <td class="success text-center">加班天数</td>
                </tr>
                <tr th:each="overtime:${jiabanList}">
                    <td class="text-center" th:text="${overtime.uId}">tom</td>
                    <td class="text-center" th:text="${overtime.note}">报数据</td>
                    <td class="text-center" th:text="${#calendars.format(overtime.beginDate,'yyyy-MM-dd')}">2017.01.01
                    </td>
                    <td class="text-center" th:text="${#calendars.format(overtime.endDate,'yyyy-MM-dd')}">2017.01.03
                    </td>
                    <td class="text-center" th:text="${overtime.jiabanDays}">3</td>
                </tr>
            </table>
        </div>
    </div>

    <div class="row">
        <div class="col-xs-12 col-sm-8 col-sm-offset-2">
            <span class="badge">加班申请</span>
            <form role="form" action="" method="post" th:object="${jiaban}">
                <div class="form-group">
                    <table class="table table-striped table-hover table-condensed table-responsive">
                        <tr>
                            <td class="text-center">姓名</td>
                            <td><label>
                                <input type="text" class="form-control input-sm" name="name" th:field="*{uId}"/>
                            </label></td>
                        </tr>
                        <tr>
                            <td class="text-center">加班开始日期</td>
                            <td><input type="date" class="form-control input-sm" name="sDate" placeholder="2017.01.01"
                                       th:field="*{beginDate}"></td>
                        </tr>
                        <tr>
                            <td class="text-center">加班结束日期</td>
                            <td><input type="date" class="form-control input-sm" name="fDate" placeholder="2017.01.02"
                                       th:field="*{endDate}"></td>
                        </tr>
                        <tr>
                            <td class="text-center">加班事由</td>
                            <td>
                                <textarea class="form-control input-sm" rows="3" name="oReason"
                                          th:field="*{note}"></textarea>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="col-sm-offset-6 col-sm-2">
                    <button class="btn btn-success btn-sm btn-block" type="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/javascript" src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!--浏览器支持-->
<script type="text/javascript" src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script type="text/javascript" src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
</body>
</html>